import request from '@/utils/request'

// 查询订单与服务项目对应表列表
export function listOrdersitems(query) {
  return request({
    url: '/service/ordersitems/list',
    method: 'get',
    params: query
  })
}

// 查询订单与服务项目对应表详细
export function getOrdersitems(ordersitemsId) {
  return request({
    url: '/service/ordersitems/' + ordersitemsId,
    method: 'get'
  })
}

// 新增订单与服务项目对应表
export function addOrdersitems(data) {
  return request({
    url: '/service/ordersitems',
    method: 'post',
    data: data
  })
}

// 修改订单与服务项目对应表
export function updateOrdersitems(data) {
  return request({
    url: '/service/ordersitems',
    method: 'put',
    data: data
  })
}

// 删除订单与服务项目对应表
export function delOrdersitems(ordersitemsId) {
  return request({
    url: '/service/ordersitems/' + ordersitemsId,
    method: 'delete'
  })
}
